/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dingtalk.entity;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 钉钉人员信息Entity
 * @author jyangye
 * @version 2018-10-17
 */
public class DingUserInfo extends DataEntity<DingUserInfo> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户编号
	private String empId;		// 员工编号
	private String mobile;		// 手机号码
	private String dingUserId;		// 钉钉用户ID
	private String dingId;		// ding_id
	private String position;		// position
	private String name;		// name
	private String avatar;		// avatar
	private String email;		// email
	private String openid;		// openid
	private String unionid;		// unionid
	private String active;		// active
	private String compId;		// 组织机构
	private String dingCompId;	// 钉钉所在组织机构


	
	public DingUserInfo() {
		super();
	}

	public DingUserInfo(String id){
		super(id);
	}


	public String getCompId() {
		return compId;
	}

	public void setCompId(String compId) {
		this.compId = compId;
	}

	@ExcelField(title="用户编号", align=2, sort=20)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=32, message="员工编号长度必须介于 0 和 32 之间")
	@ExcelField(title="员工编号", align=2, sort=30)
	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}
	
	@Length(min=0, max=16, message="手机号码长度必须介于 0 和 16 之间")
	@ExcelField(title="手机号码", align=2, sort=40)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=32, message="钉钉用户ID长度必须介于 0 和 32 之间")
	@ExcelField(title="钉钉用户ID", align=2, sort=50)
	public String getDingUserId() {
		return dingUserId;
	}

	public void setDingUserId(String dingUserId) {
		this.dingUserId = dingUserId;
	}
	
	@Length(min=0, max=32, message="ding_id长度必须介于 0 和 32 之间")
	@ExcelField(title="ding_id", align=2, sort=60)
	public String getDingId() {
		return dingId;
	}

	public void setDingId(String dingId) {
		this.dingId = dingId;
	}
	
	@Length(min=0, max=32, message="position长度必须介于 0 和 32 之间")
	@ExcelField(title="position", align=2, sort=70)
	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}
	
	@Length(min=0, max=32, message="name长度必须介于 0 和 32 之间")
	@ExcelField(title="name", align=2, sort=80)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=128, message="avatar长度必须介于 0 和 128 之间")
	@ExcelField(title="avatar", align=2, sort=90)
	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	
	@Length(min=0, max=128, message="email长度必须介于 0 和 128 之间")
	@ExcelField(title="email", align=2, sort=100)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=128, message="openid长度必须介于 0 和 128 之间")
	@ExcelField(title="openid", align=2, sort=110)
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=1, message="active长度必须介于 0 和 1 之间")
	@ExcelField(title="active", align=2, sort=120)
	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	public String getDingCompId() {
		return dingCompId;
	}

	public void setDingCompId(String dingCompId) {
		this.dingCompId = dingCompId;
	}


	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
}